<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<script type="text/javascript" src="pako.min.js"></script>
<script>
    window.onload = function () {
        let base64String =getQueryVariable('base64String');
        const binData = Uint8Array.from(atob(base64String), c => c.charCodeAt(0));
        const data = pako.inflate(binData);
        const array = new Uint16Array(data);
        let result = '';
        let i = 0;
        const maxRange = 8 * 1024;
        for (i = 0; i < array.length / maxRange; i++) {
            result += String.fromCharCode.apply(null, array.slice(i * maxRange, (i + 1) * maxRange));
        }
        result += String.fromCharCode.apply(null, array.slice(i * maxRange));
        let ret = decodeURIComponent(result);
        window.location.href = `http://pako.result?ret=${ret}`;
    }
</script>

</html>